﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace WindowsServiceVisitor
{
    public partial class ServiceVisitor : ServiceBase
    {
        System.Timers.Timer timer = null;
        public ServiceVisitor()
        {
            timer = new System.Timers.Timer(60000);
            InitializeComponent();
        }

        private void InitTimer()
        { 
            
        }

        protected override void OnStart(string[] args)
        {
            timer.Start();
        }

        protected override void OnStop()
        {
        }

        protected override void OnPause()
        {
            timer.Stop();
            timer.Dispose();
            base.OnPause();
        }

        protected override void OnContinue()
        {
            base.OnContinue();
        }

        protected override void OnShutdown()
        {
 	         base.OnShutdown();
        }

         protected override void OnCustomCommand(int command)
        {
 	         base.OnCustomCommand(command);
        }

    }
}
